package com.mrx.xgateway.utils;

/**
 * @author Mr.X
 * @since 2024-03-11 10:45
 **/
public class URLUtils {

    public static String mergeUrl(String prefix, String suffix) {
        if (!prefix.endsWith("/")) {
            prefix += "/";
        }
        if (suffix.startsWith("/")) {
            suffix = suffix.substring(1);
        }
        return prefix + suffix;
    }

}
